package com.xlblog.blog.service;

import com.xlblog.blog.entity.TTag;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xlblog.blog.utils.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 */
public interface TTagService extends IService<TTag> {

    RespBean pageTags(Long current, Long size);

    RespBean getTagByName(String name);

    RespBean updateTag(TTag tTag);

    RespBean deleteTagById(Long id);

    RespBean getTagById(Long id);

    RespBean getAllTag();

    long getIdByName(String name);

    List<TTag> getAllName();
}
